package com.lemon.smartsafetynew.ui.activity.record;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.lemon.smartsafety.R;
import com.lemon.smartsafetynew.ui.activity.base.BaseFragmentActivity;
import com.lemon.smartsafetynew.entity.me.MeCompanyVo;
import com.lemon.smartsafetynew.ui.fragment.record.MaterielFragment;
import com.lemon.smartsafetynew.util.constants.KeyConstants;

/**
 * 一企一档物料信息
 * Created by lzh on 2018/3/17.
 */

public class MaterielActivity extends BaseFragmentActivity {
    private static MeCompanyVo companyVo;


    @Override
    protected void getBundleArgs() {
        super.getBundleArgs();

        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            if (bundle.containsKey(KeyConstants.KEY_COMPANY_VO)) {
                companyVo = (MeCompanyVo) bundle.getSerializable(KeyConstants.KEY_COMPANY_VO);
            }
        }
    }

    @Override
    public Fragment getFragment() {
        return MaterielFragment.newInstance(companyVo);
    }

    @Override
    protected void initTitle() {
        this.setBarTitle(R.string.record_material);
    }
}
